package com.cros.pruebas2;
enum CoffeeSize {
	BIG(8),
	HUGE(10){
		public String getLidCode() { // override the method
			// defined in CoffeeSize
			return "C";
			}
	},
	OVERWHELMING(16) { // start a code block that defines
		// the "body" for this constant
		public String getLidCode() { // override the method
		// defined in CoffeeSize
		return "A";
		}
	}; // the semicolon is REQUIRED when more code follows
	private int ounces;
	
	CoffeeSize(int ounces) {
		this.ounces = ounces;
	}
	
	
	public int getOunces() {
		return ounces;
	}
	public String getLidCode() { // this method is overridden
	// by the OVERWHELMING constant
	return "B"; // the default value we want to return for
	// CoffeeSize constants
	}
}

public class EnumPublic {
	public static void main(String... argv){
		for(CoffeeSize cs:CoffeeSize.values()){
			System.out.println(cs.getLidCode());
		}
	}

}
